/**
 * 查询服务
 * 
 * 向业务代表提供服务
 */
public class BusinessLookUp {
    public BusinessService getBusinessService(String serviceType){
        if (serviceType.equalsIgnoreCase("EJB")) {
            return new EJBBusinessService();
        }else{
            return new JMSBusinessService();
        }
    }
}
